package com.xhs.main.service.scgl.impl;

import com.xhs.main.dao.rsgl.ScglScrwDao;
import com.xhs.main.entity.scgl.ScglScrw;
import com.xhs.main.service.scgl.ScglScrwService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ScglScrwServiceImpl implements ScglScrwService {

   @Autowired
    ScglScrwDao scglScrwDao;

    @Override
    public void scgl_scglScrw_insert(ScglScrw scglScrw) {
        scglScrwDao.scgl_scglScrw_insert(scglScrw);
    }

    @Override
    public List<ScglScrw> scgl_scglScrw_selectAll() {
        return scglScrwDao.scgl_scglScrw_selectAll();
    }

    @Override
    public List<ScglScrw> scgl_scglScrw_selectAll_bylimit(Integer index, Integer pageNum) {
        Integer index01=(index-1)*pageNum;
        return scglScrwDao.scgl_scglScrw_selectAll_bylimit(index01,pageNum);
    }

    @Override
    public List<ScglScrw> scgl_scglScrw_LikeselectAll_bylimit(String thisscglScjhDocumentnum, String thisscglScjhPersonincharge, String scglScrwScjhDocumentnum, String thisscglScrwMachiningtype, Integer scglScjhStatus, Integer scglScjhBillsstatus, Integer index, Integer pageNum) {
        Integer index01=(index-1)*pageNum;
        return scglScrwDao.scgl_scglScrw_LikeselectAll_bylimit(thisscglScjhDocumentnum,thisscglScjhPersonincharge,scglScrwScjhDocumentnum,thisscglScrwMachiningtype,scglScjhStatus,scglScjhBillsstatus,index01,pageNum);
    }

    @Override
    public List<ScglScrw> scgl_scglScrw_LikeselectAll(String thisscglScjhDocumentnum, String thisscglScjhPersonincharge, String scglScrwScjhDocumentnum, String thisscglScrwMachiningtype, Integer scglScjhStatus, Integer scglScjhBillsstatus) {
        return scglScrwDao.scgl_scglScrw_LikeselectAll(thisscglScjhDocumentnum,thisscglScjhPersonincharge,scglScrwScjhDocumentnum,thisscglScrwMachiningtype,scglScjhStatus,scglScjhBillsstatus);
    }

    @Override
    public ScglScrw scgl_scglScrw_selectOne(String thisScglScjhDocumentnum) {
        return scglScrwDao.scgl_scglScrw_selectOne(thisScglScjhDocumentnum);
    }

    @Override
    public void scgl_scglScrw_updateStatus(String thisScglScjhConfirmpeople, String thisScglScjhConfirmdate, Integer thisScglScjhBillsstatus, Integer thisScglScjhStatus, String thisscglScjhDocumentnum, String thisscglScjhRemarks) {
        scglScrwDao.scgl_scglScrw_updateStatus(thisScglScjhConfirmpeople,thisScglScjhConfirmdate,thisScglScjhBillsstatus,thisScglScjhStatus,thisscglScjhDocumentnum,thisscglScjhRemarks);
    }

    @Override
    public List<ScglScrw> scgl_scglScrw_selectAllThiszhixing() {
        return scglScrwDao.scgl_scglScrw_selectAllThiszhixing();
    }

    @Override
    public void scgl_scglScrw_updateLast(String scgl_scjh_statementPeople, String scgl_scjh_dateofOrder, String scgl_scjh_lastUpdatePeople, String scgl_scjh_lastUpdateDate, String thisscglScjhDocumentnum) {
        scglScrwDao.scgl_scglScrw_updateLast(scgl_scjh_statementPeople,scgl_scjh_dateofOrder,scgl_scjh_lastUpdatePeople,scgl_scjh_lastUpdateDate,thisscglScjhDocumentnum);
    }
}
